package com.yimi.yinhepda.db.table;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Date;

/**
 * @author: lj
 * Date: 2018/12/28
 * Description: 移库装卸车扫描表
 */
@DatabaseTable(tableName = "MoveStockScanTable")
public class MoveStockScanTable {

    @DatabaseField(generatedId = true)
    private transient Long id;
    /**
     * 任务号
     */
    @DatabaseField
    private String taskNo;
    /**
     * 操作部门
     */
    @DatabaseField
    private String deptCode;
    @DatabaseField
    private String deptName;
    /**
     * 所属企业
     */
    @DatabaseField
    private String compCode;
    @DatabaseField
    private String compName;
    /**
     * 操作类型 1-装车，2-卸车，11-取消装车
     */
    @DatabaseField
    private Integer operType;
    /**
     * 运单号
     */
    @DatabaseField
    private String waybillNo;
    /**
     * 子单号
     */
    @DatabaseField
    private String childWaybillNo;
    /**
     * 操作人
     */
    @DatabaseField
    private String operCode;
    @DatabaseField
    private String operName;
    /**
     * 操作时间
     */
    @DatabaseField
    private String operTime;
    /**
     * 装卸场地
     */
    @DatabaseField
    private String inventAreaCode;
    @DatabaseField
    private String inventAreaName;
    /**
     * 是否上传：0-未上传，1已上传
     */
    @DatabaseField
    private int isUpload;
    /**
     * 库存
     */
    @DatabaseField
    private int stockNum;
    /**
     * 是否强扫：0-不是，1-是
     */
    @DatabaseField
    private int isForceScan;
    /**
     * 创建时间
     */
    @DatabaseField
    private Date createTime;

    public MoveStockScanTable() {

    }

    public MoveStockScanTable(String taskNo, String deptCode, String deptName, String compCode, String compName,
                              Integer operType, String waybillNo, String childWaybillNo, String operCode, String operName,
                              String operTime, String inventAreaCode, String inventAreaName,int stockNum, int isForceScan) {
        this.taskNo = taskNo;
        this.deptCode = deptCode;
        this.deptName = deptName;
        this.compCode = compCode;
        this.compName = compName;
        this.operType = operType;
        this.waybillNo = waybillNo;
        this.childWaybillNo = childWaybillNo;
        this.operCode = operCode;
        this.operName = operName;
        this.operTime = operTime;
        this.inventAreaCode = inventAreaCode;
        this.inventAreaName = inventAreaName;
        this.stockNum = stockNum;
        this.isForceScan = isForceScan;
        createTime = new Date();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getStockNum() {
        return stockNum;
    }

    public void setStockNum(int stockNum) {
        this.stockNum = stockNum;
    }

    public int getIsForceScan() {
        return isForceScan;
    }

    public void setIsForceScan(int isForceScan) {
        this.isForceScan = isForceScan;
    }

    public int getIsUpload() {
        return isUpload;
    }

    public void setIsUpload(int isUpload) {
        this.isUpload = isUpload;
    }

    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getCompCode() {
        return compCode;
    }

    public void setCompCode(String compCode) {
        this.compCode = compCode;
    }

    public String getCompName() {
        return compName;
    }

    public void setCompName(String compName) {
        this.compName = compName;
    }

    public Integer getOperType() {
        return operType;
    }

    public void setOperType(Integer operType) {
        this.operType = operType;
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    public String getChildWaybillNo() {
        return childWaybillNo;
    }

    public void setChildWaybillNo(String childWaybillNo) {
        this.childWaybillNo = childWaybillNo;
    }

    public String getOperCode() {
        return operCode;
    }

    public void setOperCode(String operCode) {
        this.operCode = operCode;
    }

    public String getOperName() {
        return operName;
    }

    public void setOperName(String operName) {
        this.operName = operName;
    }

    public String getOperTime() {
        return operTime;
    }

    public void setOperTime(String operTime) {
        this.operTime = operTime;
    }

    public String getInventAreaCode() {
        return inventAreaCode;
    }

    public void setInventAreaCode(String inventAreaCode) {
        this.inventAreaCode = inventAreaCode;
    }

    public String getInventAreaName() {
        return inventAreaName;
    }

    public void setInventAreaName(String inventAreaName) {
        this.inventAreaName = inventAreaName;
    }
}
